package com.example.androidtvdemo;

import android.content.Intent;
import android.os.Bundle;

import androidx.fragment.app.FragmentActivity;

import com.example.androidtvdemo.demo07.Demo07Activity;

/*
 * Main Activity class that loads {@link MainFragment}.
 */
public class MainActivity extends FragmentActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        if (savedInstanceState == null) {
            getSupportFragmentManager().beginTransaction()
                    .replace(R.id.main_browse_fragment, new MainFragment())
                    .commitNow();
        }
        //强制聚焦demo 01
        // startActivity(new Intent(this, DemoFocusActivity.class));
        //leanback横向的列表
        // startActivity(new Intent(this, HorizontalActivity.class));
        // startActivity(new Intent(this, Demo03Activity.class));
        // startActivity(new Intent(this, Demo04Activity.class));
//        startActivity(new Intent(this, Demo05Activity.class));
//        startActivity(new Intent(this, Demo06Activity.class));
        startActivity(new Intent(this, Demo07Activity.class));
    }
}